package TPJU;


/**
 * Write a description of class Sim here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Sim
{
    // instance variables - replace the example below with your own
    private int code;
    private Telephone monTel;

    /**
     * Constructor for objects of class Sim
     */
    public Sim()
    {
        // initialise instance variables
        this.code = 0;
    }
    
    public int getCode()
    {
        return this.code;
    }
    
    public void setCode(int code)
    {
        this.code=code;
    }
    
    public void ajoutTel(Telephone tel)
    {
        this.monTel=tel;
    }
    
    public int memoireTel()
    {
        return this.monTel.memoireTotale();
    }
   
    
}
